package org.little.tx;

import org.little.util.MessageTracker;

/**
 * @author Tinyspot
 * @date 2022-05-27 22:32
 */
public class TransactionManager {

    public void start() {
        System.out.println("start tx");
        MessageTracker.addMessage("start tx");
    }

    public void commit() {
        System.out.println("commit tx");
        MessageTracker.addMessage("commit tx");
    }

    public void rollback() {
        System.out.println("rollback tx");
        MessageTracker.addMessage("rollback tx");
    }
}
